﻿@model IEnumerable<PiscoSourDominio.Reserva>
@{
    ViewBag.Title = "Reservas Totales";
    
    WebGrid grid = new WebGrid(Model);
}
<div class="ContentAdmin">
    <div style="width:100%; text-align:right; padding-right:20px; padding-top:10px">
            @ViewBag.Titulo
    </div>
<h2>  Listado de reservas del Restaurante</h2>
@grid.GetHtml(
    columns: grid.Columns(

                grid.Column(columnName: "IntReserva", header: "ID", style: "text-align-center"),

                grid.Column(header: "Nombres y Apellidos", format: (item) =>
                     new HtmlString(
                                 item.cliente.vchNombre + " " + item.cliente.vchApellido
                )), 
                
                grid.Column(columnName: "dtFecReserva", header: "Fecha de reserva",style: "text-align-center"),

                grid.Column(columnName: "intCantidadPersonas", header: "Comensales", style: "text-align-center"),

                grid.Column(columnName: "local.vchNombre", header: "Local ", style: "text-align-center")
            
 ),
 
   tableStyle: "webgrid",
   headerStyle: "webgrid-header",
   footerStyle: "webgrid-footer",
   alternatingRowStyle: "webgrid-alternating-row",
   selectedRowStyle: "webgrid-selected-row",
   rowStyle: "webgrid-row-style")
   <br />
    <a href="@Url.Action("Index", "Home")" >Regresar</a>
</div>

   
 